package com.baidu.roomdemo.db

import android.os.Parcelable
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import kotlinx.android.parcel.Parcelize

//@Entity(tableName = "user_table")
// User
// id  first_name last_name age
@Parcelize
@Entity
data class User(
    @PrimaryKey(autoGenerate = true)
    val id: Int ,
    @ColumnInfo(name = "first_name")
    var firstName: String,
    @ColumnInfo(name = "last_name")
    var lastName: String,
    var age: Int
):Parcelable













